﻿using System;

namespace SX.Data
{
	public class EntityFactory : IEntityFactory
	{
		public virtual T Create<T>()
		{
			//return Activator.CreateInstance(type);
            return ReflectionHelper.Instance<T>();
		}
        public virtual object Create(Type type)
        {
            //return Activator.CreateInstance(type);
            return ReflectionHelper.Instance(type);
        }
    }
}
